package com.dingreading.cloud.app.service;

import com.dingreading.cloud.app.entity.Members;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.Date;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface MembersService extends IService<Members> {

    Page<Members> pageList(PageUtil pageUtil, String keyword, String storeUid);

    Page<Members> appPage(PageUtil pageUtil, Long storeId, String fullName, String startTime, String endTime);

    Members getByUid(String storeUid, String uid);

    // 保存会员的人脸信息
    void saveFaceInfo(String memberUid, String faceImg, String faceId);

    // 删除会员的人脸信息
    void deleteFaceInfo(String memberUid);

    // 更新会员的在店信息
    void updateStoreStatus(String memberUid, Integer storeStatus, Integer readDays, Date storeStatusTime);

}
